package org.jeecg.modules.dock.entity.mds.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * wms接收柱料明细
 *
 * @author zhoutong
 */
@Data
public class ReceivingColumnMaterialsRequestVO extends MdsBaseRequestVO {

    @NotBlank(message = "生产订单号不能为空")
    @NotNull(message = "生产订单号不能为空")
    @ApiModelProperty("生产订单号")
    private String orderCode;

    @ApiModelProperty("明细")
    private List<Detail> detail;

    /**
     * 明细
     */
    @Data
    static class Detail implements Serializable {

        @NotBlank(message = "批次号不能为空")
        @NotNull(message = "批次号不能为空")
        @ApiModelProperty("批次号")
        private String batchId;

        @NotBlank(message = "位置不能为空")
        @NotNull(message = "位置不能为空")
        @ApiModelProperty("位置")
        private String position;

        @NotBlank(message = "柱型不能为空")
        @NotNull(message = "柱型不能为空")
        @ApiModelProperty("柱型")
        private String modelName;

        @NotNull(message = "理料方向不能为空")
        @ApiModelProperty("理料方向，1-正  ，2-反")
        private Integer direction;

        @NotBlank(message = "台号不能为空")
        @NotNull(message = "台号不能为空")
        @ApiModelProperty("台号")
        private String tableCode;

    }

}
